// +---------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +---------------------------------------------------------------------

import BasicLayout from '@/components/main';

const pre = 'platform_';

export default {
  path: '/admin/platform',
  name: 'platform',
  header: 'platform',
  redirect: {
    name: `${pre}book`,
  },
  component: BasicLayout,
  children: [
	{
	  path: 'book',
	  name: `${pre}book`,
	  meta: {
	    auth: ['admin-platform-book'],
	    title: '图书管理',
	  },
	  component: () => import('@/pages/platform/book/index'),
	},
	{
	  path: 'bookwarning',
	  name: `${pre}bookwarning`,
	  meta: {
	    auth: ['admin-platform-bookwarning'],
	    title: '图书预警',
	  },
	  component: () => import('@/pages/platform/bookwarning/index'),
	},
	{
	  path: 'book/detail/:id?',
	  name: `${pre}book/detail`,
	  meta: {
	    auth: ['admin-platform-book-detail'],
	    title: '读者详情', 
	  },
	  component: () => import('@/pages/platform/book/detail/index'),
	},
	{
	  path: 'render',
	  name: `${pre}render`,
	  meta: {
	    auth: ['admin-platform-render'],
	    title: '读者管理',
	  },
	  component: () => import('@/pages/platform/render/index'),
	},
	{
	  path: 'render/detail/:id?',
	  name: `${pre}render/detail`,
	  meta: {
	    auth: ['admin-platform-render-detail'],
	    title: '读者详情', 
	  },
	  component: () => import('@/pages/platform/render/detail/index'),
	},
	{
	  path: 'rederexpire',
	  name: `${pre}rederexpire`,
	  meta: {
	    auth: ['admin-platform-rederexpire'],
	    title: '读者管理',
	  },
	  component: () => import('@/pages/platform/renderexpire/index'),
	},
	{
	  path: 'borrwing',
	  name: `${pre}borrwing`,
	  meta: {
	    auth: ['admin-platform-borrwing'],
	    title: '借阅管理',
	  },
	  component: () => import('@/pages/platform/borrwing/index'),
	},
	{
	  path: 'borrwback',
	  name: `${pre}borrwback`,
	  meta: {
	    auth: ['admin-platform-borrwback'],
	    title: '借阅待还',
	  },
	  component: () => import('@/pages/platform/borrwback/index'),
	},
	{
	  path: 'borrwbacked',
	  name: `${pre}borrwbacked`,
	  meta: {
	    auth: ['admin-platform-borrwbacked'],
	    title: '借阅已还',
	  },
	  component: () => import('@/pages/platform/borrwbacked/index'),
	},
	{
	  path: 'borrwexpire',
	  name: `${pre}borrwexpire`,
	  meta: {
	    auth: ['admin-platform-borrwexpire'],
	    title: '借阅超期',
	  },
	  component: () => import('@/pages/platform/borrwexpire/index'),
	},
	{
	  path: 'borrwing/detail/:id?',
	  name: `${pre}borrwing/detail`,
	  meta: {
	    auth: ['admin-platform-borrwing-detail'],
	    title: '借阅详情', 
	  },
	  component: () => import('@/pages/platform/borrwing/detail/index'),
	},
	{
	  path: 'bookcate',
	  name: `${pre}bookcate`,
	  meta: {
	    auth: ['admin-platform-bookcate'],
	    title: '图书分类',
	  },
	  component: () => import('@/pages/platform/bookcate/index'),
	},
  ],
};
